<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ include file="/wesite/view/common/base.jsp" %>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>信息提示</title>
    <%@ include file="/wesite/view/common/common.jsp" %>
</head>
<style>
    .message-con {
        position: fixed;
        top: 50%;
        left: 50%;
        width: 100%;
        text-align: center;
        -webkit-transform: translate(-50%, -70%);
        -moz-transform: translate(-50%, -70%);
        -ms-transform: translate(-50%, -70%);
        -o-transform: translate(-50%, -70%);
        transform: translate(-50%, -70%);
    }

    .message-con img {
        display: block;
        margin: 0 auto;
    }

    .message-con a {
        margin: 0 auto;
        width: 128px;
        height: 38px;
        line-height: 38px;
        display: block;
        border: 1px solid #00acff;
        text-align: center;
        color: #fff;
        font-size: 22px;
        background: #0daeff;
        border-radius: 3px;
        text-decoration: none;
    }

    .message-con .mes-txt {
        margin: 30px 0 15px 0;
        color: #ff6767
    }

    .message-con .sec-back {
        margin: 15px 0;
    }

    .message-con .sec-back #sec {
        color: #ff6767;
    }
</style>
<body>
<div class="message-con">
    <img src="${ctx }/wesite/images/msgicon.png">
    <div class="mes-txt">
        你访问的页面出现异常
    </div>
    <div class="sec-back"><span id="sec">9</span> 秒后自动返回首页</div>
    <a href="/we/index" class="det-btn">返回首页</a>
</div>
<script>
    $(function () {
        setTimeout("gohome();", 1000);
    })
    function gohome() {
        var txt = $("#sec").text();
        $("#sec").text(--txt);
        if (txt > 1) {
            setTimeout("gohome();", 1000);
        } else {
            window.location.href = "/we/index";
        }
    }



</script>
</body>
</html>
